<extend name="Public/base" />

<block name="body">
	<div class="am-cf am-u-md-12 header-title">
		<h2>批量导入 [{$data.title|default='顶级菜单'}]</h2>
	</div>
	<!-- 标签页导航 -->
<div class="am-cf am-u-md-12">
	<!-- 表单 -->
	<form id="form" action="{:U('import')}" method="post" class="form-horizontal">
		<!-- 基础文档模型 -->
		<div class="am-form-group">
			<label class="am-u-md-2 am-form-label">导入的内容</label>
			<div class="am-u-md-10">
				<textarea name="tree" class="am-form-field"></textarea>
				<span class="am-form-help">导入格式：标题|url(回车键)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;标题|url（请按照导入格式输入）</span>
			</div>
		</div>
		<div class="am-form-group">
            <div class="am-u-md-10 am-u-md-offset-2">
				<button class="am-btn am-btn-primary submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
				<a class="am-btn am-btn-default btn-return" href="{:U('index?pid='.$pid)}">返 回</a>
				<input type="hidden" name="pid" value="{$pid}"/>
				<input type="hidden" name="cate_id" value="{$cate_id|default=0}">
			</div>
		</div>
	</form>
</div>
</block>

<block name="script">
<script type="text/javascript">

$('#submit').click(function(){
	$('#form').submit();
});


$(function(){
	//导航高亮
	highlight_subnav('{:U('index')}');
});
</script>
</block>
